<%@page import="java.util.List,com.crm.entity.Opportunity" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/temp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->
<link href="<%=application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />

<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body>
<div id="main">
  <%@ include file="common/header.jsp" %>
  <%@ include file="common/submenu.jsp" %>
  
  <div id="content"><!-- InstanceBeginEditable name="EditRegion3" -->
    <div id="work-area2">
      <div class="heading2">Pending Orders</div>
	  
      <div class="boxIFS">
        <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
          <tr>
            <td width="30" align="center" valign="middle" background="images/table-box.jpg"  style="background-repeat:repeat-x">S.No </td>
            <td width="187" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF"> Reference No.</td>
            <td width="250" align="center" valign="middle" background="images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Remarks</td>
          </tr>
           <%
          List<Opportunity> lopp=(List<Opportunity>)request.getAttribute("pendingOrders");
          if(lopp!=null){
        	  for(int i=0;i<lopp.size();i++){
          %>
          <tr>
            <td align="center" bgcolor="#FFFFFF"><input name="sno<%=i+1 %>" type="text" size="5" value="<%=i+1%>"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="refNO<%=i+1 %>" type="text" size="5" value="<%=lopp.get(i).getRefNum()%>"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="ramarks<%=i+1 %>" type="text" size="5" value="<%=lopp.get(i).getRemarks()%>"/></td>
          </tr>
          <%
        	  }
          }
          %>
        </table>
      </div>
	  <div class="boxIFS">
	    <div class="buttton-main">
	    <div class="button">Update</div>
	    </div>
	  </div>
	  
    </div>
    <table style="height:300px; width:910px;" ><tr><td>
	   <div class="boxtable" id="result">
	   <div id="partsDiv"></div>
	  </div>
	  </td>
	  </tr>
	  </table>
    <!-- InstanceEndEditable -->
     </div><div id="footer"></div>  
</div>
</body>
<!-- InstanceEnd --></html>
